import $axios from './index.js'

// 操作日志列表
function adminList(data) {
  const url = '/admin/index'
  return $axios.get(url, data)
}
// 操作日志添加
function adminSave(data) {
  const url = '/admin/save'
  return $axios.post(url, data)
}
// 操作日志编辑
function adminUpdate(data) {
  const url = '/admin/update'
  return $axios.post(url, data)
}
// 操作日志删除
function adminDelete(data) {
  const url = '/admin/delete'
  return $axios.post(url, data)
}
// 操作日志重置密码
function resetPass(data) {
  const url = '/admin/resetPass'
  return $axios.post(url, data)
}

export default {
  adminList,
  adminSave,
  adminUpdate,
  adminDelete,
  resetPass
}
